package stancel.peter.smslogger.background;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;

/**
 * Trieda sluziaca pre spravu widgetu.
 * @author Peter Stancel
 */
public class SMSWidget extends AppWidgetProvider{

	/**
	 * Spusti sluzbu <b>SMSWidgetService</b>, ktora aktualizuje widget.
	 */
	@Override
	public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
		super.onUpdate(context, appWidgetManager, appWidgetIds);

		Intent intent = new Intent(context, SMSWidgetService.class);
		context.startService(intent);
	}
}